Optimal. Leaf size=57 \[ -\frac{5 \cot ^3(a+b x)}{6 b}+\frac{5 \cot (a+b x)}{2 b}+\frac{\cos ^2(a+b x) \cot ^3(a+b x)}{2 b}+\frac{5 x}{2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0410902, antiderivative size = 57, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.235, Rules used = {2591, 288, 302, 203} \[ -\frac{5 \cot ^3(a+b x)}{6 b}+\frac{5 \cot (a+b x)}{2 b}+\frac{\cos ^2(a+b x) \cot ^3(a+b x)}{2 b}+\frac{5 x}{2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2591
Rule 288
Rule 302
Rule 203
Rubi steps
\begin{align*} \int \cos ^2(a+b x) \cot ^4(a+b x) \, dx &=-\frac{\operatorname{Subst}\left (\int \frac{x^6}{\left (1+x^2\right )^2} \, dx,x,\cot (a+b x)\right )}{b}\\ &=\frac{\cos ^2(a+b x) \cot ^3(a+b x)}{2 b}-\frac{5 \operatorname{Subst}\left (\int \frac{x^4}{1+x^2} \, dx,x,\cot (a+b x)\right )}{2 b}\\ &=\frac{\cos ^2(a+b x) \cot ^3(a+b x)}{2 b}-\frac{5 \operatorname{Subst}\left (\int \left (-1+x^2+\frac{1}{1+x^2}\right ) \, dx,x,\cot (a+b x)\right )}{2 b}\\ &=\frac{5 \cot (a+b x)}{2 b}-\frac{5 \cot ^3(a+b x)}{6 b}+\frac{\cos ^2(a+b x) \cot ^3(a+b x)}{2 b}-\frac{5 \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\cot (a+b x)\right )}{2 b}\\ &=\frac{5 x}{2}+\frac{5 \cot (a+b x)}{2 b}-\frac{5 \cot ^3(a+b x)}{6 b}+\frac{\cos ^2(a+b x) \cot ^3(a+b x)}{2 b}\\ \end{align*}
Mathematica [A] time = 0.177181, size = 43, normalized size = 0.75 \[ \frac{30 (a+b x)+3 \sin (2 (a+b x))-4 \cot (a+b x) \left (\csc ^2(a+b x)-7\right )}{12 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.012, size = 84, normalized size = 1.5 \begin{align*}{\frac{1}{b} \left ( -{\frac{ \left ( \cos \left ( bx+a \right ) \right ) ^{7}}{3\, \left ( \sin \left ( bx+a \right ) \right ) ^{3}}}+{\frac{4\, \left ( \cos \left ( bx+a \right ) \right ) ^{7}}{3\,\sin \left ( bx+a \right ) }}+{\frac{4\,\sin \left ( bx+a \right ) }{3} \left ( \left ( \cos \left ( bx+a \right ) \right ) ^{5}+{\frac{5\, \left ( \cos \left ( bx+a \right ) \right ) ^{3}}{4}}+{\frac{15\,\cos \left ( bx+a \right ) }{8}} \right ) }+{\frac{5\,bx}{2}}+{\frac{5\,a}{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.48475, size = 74, normalized size = 1.3 \begin{align*} \frac{15 \, b x + 15 \, a + \frac{15 \, \tan \left (b x + a\right )^{4} + 10 \, \tan \left (b x + a\right )^{2} - 2}{\tan \left (b x + a\right )^{5} + \tan \left (b x + a\right )^{3}}}{6 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.23404, size = 197, normalized size = 3.46 \begin{align*} -\frac{3 \, \cos \left (b x + a\right )^{5} - 20 \, \cos \left (b x + a\right )^{3} - 15 \,{\left (b x \cos \left (b x + a\right )^{2} - b x\right )} \sin \left (b x + a\right ) + 15 \, \cos \left (b x + a\right )}{6 \,{\left (b \cos \left (b x + a\right )^{2} - b\right )} \sin \left (b x + a\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 4.73463, size = 97, normalized size = 1.7 \begin{align*} \begin{cases} \frac{5 x \sin ^{2}{\left (a + b x \right )}}{2} + \frac{5 x \cos ^{2}{\left (a + b x \right )}}{2} + \frac{5 \sin{\left (a + b x \right )} \cos{\left (a + b x \right )}}{2 b} + \frac{5 \cos ^{3}{\left (a + b x \right )}}{3 b \sin{\left (a + b x \right )}} - \frac{\cos ^{5}{\left (a + b x \right )}}{3 b \sin ^{3}{\left (a + b x \right )}} & \text{for}\: b \neq 0 \\\frac{x \cos ^{6}{\left (a \right )}}{\sin ^{4}{\left (a \right )}} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15451, size = 74, normalized size = 1.3 \begin{align*} \frac{15 \, b x + 15 \, a + \frac{3 \, \tan \left (b x + a\right )}{\tan \left (b x + a\right )^{2} + 1} + \frac{2 \,{\left (6 \, \tan \left (b x + a\right )^{2} - 1\right )}}{\tan \left (b x + a\right )^{3}}}{6 \, b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]